for j in range(1,10):#输入9行
	for m in range(1,10-j):#输入空白
		print (end=" "*9) 
	for i in range(j,0,-1):#输出九九乘法表
		print ("{}*{}={:<4}".format(i,j,i*j),end=" ")
	print("")
print ("="*80)
for j in range(9,0,-1):#倒序输入9行
	for m in range(0,9-j):#输入空白
		print (end=" "*9) 
	for i in range(j,0,-1):#输出九九乘法表
		print ("{}*{}={:<4}".format(i,j,i*j),end=" ")
	print("")